import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import axios from 'axios';
import '@/assets/iconfont/iconfont.css'

//引入Elmessage和Elloading的css样式文件
import 'element-plus/theme-chalk/el-loading.css';
import 'element-plus/theme-chalk/el-message.css';



const app = createApp(App)
const pinia = createPinia()

app.use(pinia)
app.use(router)

// 将 axios 挂载到 Vue 实例的原型上
app.config.globalProperties.$axios = axios;

app.mount('#app')
